<template>
    <div>
        <Button icon="ios-remove" @click="closeThisTag">关闭当前页</Button>
        <Button icon="ios-remove" @click="sendEvent">发送事件</Button>
        <Button icon="ios-add" @click="addParam">添加参数</Button>
    </div>
</template>

<script>
    export default {
        data(){
            return{

            }
        },
        methods:{
            closeThisTag(){
                this.afs.closeTab(this);
            },
            sendEvent(){
                this.afs.afsEmit(this,'testEvent',{aa:'event',bb:'event-bbb'})
            },
            addParam(){
               this.afs.setPageParams(this,{testAdd:'testAdd'})
            }
        },
        mounted(){
            console.log(this.afs.getPageParams(this));
            var param = JSON.stringify(this.afs.getPageParams(this));
            console.log(this.afs.getPageParams(this).no);
            console.log(this.$route.meta.menusParams);
            console.log(this.afs.getMenuParams(this));
        }
    }
</script>
